package pull
{
import pull.IUserInfoObserver;

/**
 * @author daichangxin
 */
public class UserInfoObserver_ShopInfoDialog implements IUserInfoObserver
{
	private var _subject:IUserInfoSubject;
	
	private var _userName:String;
	private var _level:uint;
	private var _golden:uint;
	
	public function UserInfoObserver_ShopInfoDialog(subject:IUserInfoSubject)
	{
		_subject = subject;
	}
	
	public function update() : void
	{
		_userName = _subject.userName;
		_level = _subject.level;
		_golden = _subject.golden;
		
		trace("当前登陆商店用户信息, name: " + _userName + ", level: " + _level + ", golden: " + _golden);
	}
}
}
